#include <stdio.h>
struct People         //  int
{
	char name[18];   // 18 + 2 
	int	 age;        // 4
	char sex;        // 1 + 3 
	float shouru;    // 4
	char* addr;	     //	4
};

void dayin(int x)
{
	printf("a == %d\n",x);
}

void printstruct(struct People  stux)
{
	printf("%-10s",stux.name);
	printf("%-4d",stux.age);
	printf("%-4c",stux.sex);
	printf("%-10.2f",stux.shouru);
	printf("%-20s\n",stux.addr);	
}


int main()
{
	int a = 6;
//	int b;
//	b = a;
	dayin(a);
	dayin(5);

	
	
	struct People  stu1 = {"zhangsan",18,'W',8888.88,"shenzhen"};
//	struct People  stu2;
//	stu2 = stu1;
	printstruct(stu1);

	
	

//	printf("%-10s",stu2.name);
//	printf("%-4d",stu2.age);
//	printf("%-4c",stu2.sex);
//	printf("%-10.2f",stu2.shouru);
//	printf("%-20s\n",stu2.addr);	
	
	return 0;
}

